package com.example.orderserver.controller;

import com.example.orderserver.controller.vo.OrderVO;
import com.example.orderserver.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("/biz/generatorOrder")
    public String generatorOrder(@RequestBody OrderVO orderVO) {
        return orderService.generatorOrder(orderVO);
    }
}